{% extends "layout.html" %}
{% block page_title %}
{% if contact %}
Edit
{% else %}
New
{% endif %}
{% endblock %}
{% block content %}
<form method="POST">
    {% csrf_token %}
    {{form.as_p }}
    <input type="submit" value="Save" />
</form>
{% if contact %}
<p> <a href="{% url contact-edit-address pk=contact.id %}">Edit Address</a></p>
{% endif %}
{% endblock %}

